package cn.jlkj2012.csmall.product.teacher.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class BrandAddNewDTO {
    @ApiModelProperty(value = "品牌名称", required = true)
    @NotNull(message = "添加品牌失败，必须提交品牌名称！")
    private String name;
    private String pinyin;
    private String logo;
    @ApiModelProperty(value = "品牌简介", required = true)
    @NotNull(message = "添加品牌失败，必须提交品牌简介！")
    private String description;
    private String keywords;
    @ApiModelProperty(value = "排序序号", required = true)
    @Range(max = 255, message = "添加品牌失败，排序序号必须是0~255之间的值！")
    private Integer sort;
    private Integer sales;
    private Integer productCount;
    private Integer commentCount;
    private Integer positiveCommentCount;
    private Integer enable;
}
